body {
  --history-color: #16202d;
  --history-border: #dcdfe6;
  --history-bg: #f7f8fa;
  --history-color1: #464646;
  --history-color2: #16202d;
  --history-color3: #86909c;
  --history-bg1: #fff7e8;
  --investigationreport-color: #16202d;
  --investigationreport-bg: #f7f8fa;
  --block-color: var(--white);
}

body[arco-theme='dark'] {
  --history-color: #e9d5d2;
  --history-border: #484849;
  --history-bg: #333335;
  --history-color1: #b9b9b9;
  --history-color2: #e4dfd2;
  --history-color3: #798663;
  --history-bg1: #000807;
  --investigationreport-color: #e9d5d2;
  --investigationreport-bg: #333335;
  --block-color: var(--app-color3);
}

.layout-breadcrumb {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  .icon {
    // transform: scale(1.1) translateY(-2px);
    vertical-align: text-bottom;
    // margin-right: 16px;
    stroke: none;
    fill: var(--color-text-2);
  }

  .rtl-icon {
    // transform: scale(1.1) translateY(-2px);
    vertical-align: text-bottom;
    // margin-left: 16px;
    margin-right: 0;
    stroke: none;
    fill: var(--color-text-2);
  }
  .buttons {
    position: absolute;
    right: 0;
    top: -4px;
  }
  .rtl-buttons {
    position: absolute;
    left: 0;
    top: -4px;
  }
  .button {
    background: var(--block-color);
    color: var(--black);
  }
}

.block {
  width: 100%;
  background: var(--block-color);
  padding: 10px 20px;
  border-radius: 2px;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 3%);
}

.block-title {
  padding: 10px 0;
  color: rgb(var(--primary-6));
  font-size: 16px;
  font-weight: 600;
}

.block-col {
  padding: 10px 0;
  word-break: break-word;
  white-space: pre-wrap;
  align-items: flex-start;
  :global(.arco-space-item):last-child {
    flex: 1;
  }
  .name {
    color: var(--color-text-3);
    font-size: 14px;
    font-weight: 400;
  }

  .value {
    color: var(--black);
    font-size: 14px;
    font-weight: 400;
    text-align: justify;
  }

  .other {
    color: #f53f3f;
    cursor: pointer;
  }
}

.space {
  height: 10px;
  width: 100%;
}

.spin {
  width: 100%;
}

.violation {
  margin: 6px 12px 0;
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--app-color12);
  background: var(--app-color11);
  font-size: 12px;
  font-weight: 400;

  .question {
    padding: 6px 0;
    color: var(--black);

    .other {
      color: #f53f3f;
    }
  }
}

.violation-col {
  padding: 6px 0;
  align-items: flex-start;
  :global(.arco-space-item):last-child {
    flex: 1;
  }
  .name {
    color: var(--color-text-3);
  }

  .value {
    color: var(--black);
    word-break: break-word;
    text-align: justify;
  }
}

.violation-additionalDetails {
  padding-top: 20px;
  .name {
    color: var(--color-text-3);
    margin-right: 8px;
  }

  .name-rtl {
    color: var(--color-text-3);
    margin-left: 8px;
  }
}

.actions {
  border-radius: 2px;
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 20;
  width: 100%;

  .button {
    padding: 0 28px;
  }

  .right-button {
    display: flex;
    justify-content: flex-end;
  }

  .template {
    padding-bottom: 6px;
    display: flex;
    justify-content: space-between;
    font-weight: 400;
    width: 100%;

    :global(.arco-select) {
      input {
        font-size: 12px;
      }
    }

    &-title {
      font-size: 14px;
      font-weight: 400;
    }

    &-save {
      font-size: 12px;
      color: rgb(var(--primary-6));
      background: transparent;
    }
  }
}
.textArea {
  :global(.arco-textarea) {
    max-height: 150px;
  }
}
.actions-plan {
  width: 100%;
}

.actions-content {
  margin-left: 20px;
  margin-right: 20px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 10%);
}
.action-row {
  transition: height 0.5s;
  overflow: hidden;
  :global(.arco-textarea-word-limit) {
    position: static;
    text-align: right;
    display: inline-block;
    width: 100%;
    padding: 0 10px;
  }
}
.actions-head {
  border: 0;
  border-radius: 2px 2px 0 0;
  background: var(--app-color8);
  height: 32px;
  width: 100%;
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  padding: 0 20px;
  line-height: 32px;
  display: flex;
  justify-content: space-between;
  position: relative;
  &-text {
    color: #4ab7d9;
  }
}

.actions-form {
  margin-bottom: 20px;
}
.action-from-plan {
  position: fixed;
  bottom: -999px;
}

.record-modal {
  :global(.arco-modal-content) {
    padding: 24px 0;
  }

  &-scroll {
    padding: 0 20px;
    height: 70vh;
    overflow: auto;
  }
}
.recoed {
  height: 44px;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}
.record-check {
  display: flex;
  align-items: flex-end;
  padding-bottom: 10px;
  :global(.arco-checkbox-text) {
    color: #4ab7d9;
    display: inline-flex;
    width: 320px;
  }
  &-text {
    overflow: hidden; //超出的文本隐藏
    text-overflow: ellipsis; //溢出用省略号显示
    white-space: nowrap; //溢出不换行
  }
}

.record-span {
  font-weight: bold;
}

.upload {
  .list {
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
  }

  .item {
    height: 36px;
    background: var(--color-fill-2);
    color: var(--color-text-1);
    border-radius: 2px;
    width: 32%;
    padding: 0 5px;
    margin: 0 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;

    &-text {
      flex: 1;
    }

    &:hover {
      background: var(--app-color9);
      cursor: pointer;
    }

    &-icon {
      font-size: var(--font-size-title-1);
      margin: 0 5px;
    }

    &-icon-hover {
      font-size: var(--font-size-title-1);
      margin: 0 5px;

      &:hover {
        color: var(--app-color2);
      }
    }

    &-span {
      font-size: var(--font-size-body-3);
      overflow: hidden;
      flex: 1;
      margin-bottom: 0;
    }
  }

  .item:nth-child(3n + 2) {
    margin: 0 1.5% 12px;
  }
}

.button-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.search-form {
  padding-right: 20px;
  flex: 1;

  :global(.arco-form-label-item-left) {
    > label {
      white-space: nowrap;
    }
  }
}

.search-formrtl {
  padding-left: 20px;
  flex: 1;

  :global(.arco-form-label-item-left) {
    > label {
      white-space: nowrap;
    }
  }
}

.violationLink-input {
  width: 200px;
}

.history {
  &-title {
    color: var(--history-color);
    font-size: 20px;
    font-weight: 600;
    text-align: left;
    padding: 18px 0;
  }
  &-title-rtl {
    text-align: right;
  }
  &-search {
    display: flex;
    justify-content: center;
    padding-bottom: 16px;
  }
  &-search1 {
    display: flex;
    justify-content: flex-start;
    padding: 0 24px 16px;
    &-date {
      margin: 0 24px;
    }
  }
  :global(.arco-modal-content) {
    padding: 16px 0;
    height: 75vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  &-scroll {
    padding: 0 24px;
    overflow: auto;
    flex: 1;
  }
  &-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
}
.history .item {
  border-radius: 4px;
  border: 1px solid var(--history-border);
  margin-bottom: 16px;
  &-header {
    border-bottom: 1px solid var(--history-border);
    background: var(--history-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    height: 36px;
    padding: 0 24px;
    .name {
      color: var(--history-color1);
      .text {
        color: var(--history-color2);
        font-weight: 800;
      }
    }
    .time {
      color: var(--history-color3);
      font-weight: 400;
    }
  }
  .noreply {
    background-color: var(--history-bg1);
  }

  &-commit {
    padding: 8px 24px;
    &-header {
      display: flex;
      justify-content: space-between;
      padding: 16px 0;
      font-size: 14px;
      .name {
        font-weight: 800;
      }
      .time {
        color: #86909c;
        font-weight: 400;
      }
    }
    &-content {
      color: var(--history-color1);
      font-size: 14px;
      font-weight: 400;
      padding-bottom: 13px;
      // display: flex;
      flex-wrap: wrap;
      word-break: break-word;
      white-space: pre-wrap;
    }
    &-content-rtl {
      text-align: right;
    }
  }
  &-hr {
    border-top: 1px var(--history-border) dashed;
    margin: 0 24px;
  }
  &-files {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 0 24px 24px;
    .file_bg {
      width: 33.33%;
      padding: 16px 16px 0 0;
    }
    .file {
      border-radius: 6px;
      background: rgba(214, 220, 224, 30%);
      display: flex;
      align-items: center;
      height: 24px;
      cursor: pointer;
      overflow: hidden;
      margin: 0 20px 10px 0;
      .icon {
        width: 24px;
      }
      .span {
        color: var(--history-color1);
        font-size: 12px;
        font-weight: 400;
        padding: 0 12px;
        flex: 1;
        direction: ltr;
      }
    }
  }
}

.history .action {
  .action-item {
    padding-bottom: 8px;
  }
  .action-label {
    color: var(--color-text-3);
  }
  .action-value {
    color: var(--color-text-1);
  }
}

.violationLinks-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.investigationReport {
  overflow: hidden;
}

.investigationReport {
  :global(.arco-modal-content) {
    padding: 0;
  }
  &-title {
    color: var(--history-color);
    font-size: 20px;
    font-weight: 600;
    text-align: left;
    padding: 18px 0;
  }
  &-title-rtl {
    text-align: right;
  }
  &-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    position: sticky;
    top: 0;
  }
}

.investigationReport-info {
  height: 75vh;
  display: flex;
  flex-direction: column;
}
.investigationReport .rtl {
  * {
    text-align: right;
  }
}
.investigationReport-scroll {
  flex: 1;
  // height: 75vh;
  overflow: auto;
  padding: 0 24px;
}

.investigationReport .item {
  border-radius: 4px;
  border: 1px solid var(--history-border);
  margin-bottom: 16px;
  .item-header {
    border-bottom: 1px solid var(--history-border);
    background: var(--history-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    height: 36px;
    padding: 0 24px;
    font-weight: 800;
  }
  .item-content {
    padding: 12px 24px;
  }
  .item-hr {
    padding: 12px 0;
    .line {
      border-top: 1px var(--history-border) dashed;
    }
  }
  .row {
    display: flex;
  }
  .col {
    flex: 1;
    display: flex;
    padding: 12px 0;
    .label {
      width: 170px;
      color: var(--history-color1);
      font-size: 14px;
      font-weight: 400;
    }
    .value {
      flex: 1;
      color: var(--history-color2);
      font-size: 14px;
      font-weight: 600;
      word-break: break-word;
      white-space: pre-wrap;
      padding-right: 12px;
    }
  }
}

.signtures {
  display: flex;
  flex-wrap: wrap;
  &-item {
    margin-right: 12px;
    margin-bottom: 12px;
    background: var(--investigationreport-bg);
    border-radius: 4px;
    width: 280px;
    display: flex;
    align-items: center;
    overflow: hidden;
    .text {
      padding-left: 12px;
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
    }
  }
}

.history-empty * {
  text-align: center !important;
}

.attachments {
  padding: 14px 20px 0;
  font-size: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--app-color12);
  background: var(--app-color11);
  .other {
    color: #f53f3f;
    margin: 0 8px;
  }

  .item {
    background: var(--color-fill-3);
  }
}
